{% extends 'base.html' %}

{% block title %}用户登录{% endblock %}

{% block content %}
<body class="login-body login-page">
    <div class="login-container">
        <div class="glass-card">
            <div class="logo-container">
                <img src="{{ url_for('static', filename='images/CN-1-transparent.png') }}" alt="Company Logo" class="logo">
            </div>
            <div class="login-card-header">用户登录</div>
            <div class="card-body p-0 mt-2">
                <form method="POST" action="{{ url_for('user.login') }}">
                    <div class="mb-3">
                        <label for="username" class="login-form-label">用户名</label>
                        <input type="text" class="form-control login-form-control" id="username" name="username" required>
                    </div>
                    <div class="mb-3">
                        <label for="password" class="login-form-label">密码</label>
                        <input type="password" class="form-control login-form-control" id="password" name="password" required>
                    </div>
                    <button type="submit" class="btn login-btn-primary">登录</button>
                </form>
            </div>
        </div>
    </div>
</body>
{% endblock %}